<?php
$current_search = '';
if(is_single())
{
	$post_categories = wp_get_post_categories( get_the_ID() );	
	$fixterm = get_term_by('id', $post_categories[0], 'category'); 
 	$oterm = 	$fixterm->slug; 
 	if($oterm=="for-rent")
 		$mn_chothue = 'btn_active';
 	else 
 		$mn_canban2 = 'class="active"';	
}
if(is_search())
{
	
	if($_GET['hidden_current_search']!='')
	{
		$mn_canban = 'btn_for_sale';
		$mn_canban2 = 'class="active"';
	}
	else 
	{
		$mn_chothue = 'btn_active';
	}
}

if(is_home() || is_front_page() || is_page('tin-da-luu'))
{
	$mn_chothue = 'btn_active';
	$mn_home = 'class="active"';
}
if(is_page("gioi-thieu"))
{
	$mn_gioithieu = 'class="active"';
	$mn_chothue = 'btn_active';	
}
if(is_page("quy-dinh-su-dung"))
{
	$mn_quydinhsudung = 'class="active"';
	$mn_chothue = 'btn_active';
}
if(is_page("lien-he"))
{
	$mn_lienhe = 'class="active"';
	$mn_chothue = 'btn_active';
}
if(is_page("cho-thue") || is_page('ky-gui') || is_tax())
{
	$mn_chothue = 'btn_active';
}
if(is_page("can-ban"))
{
	$mn_canban = 'btn_for_sale';
	$mn_canban2 = 'class="active"';
	$current_search = 'can-ban';
}
?>